'use strict'

var Sequelize = require('sequelize');

//引用路径
var sequelize = require('../db');

const User = sequelize.define('work', {
    //职业名称：Occupation
    //公司名称：CorporateName
    //地点：Site
    //工资：Salary
    //发布时间：PublishTime

    Occupation: {
        type: Sequelize.STRING(800),
        allowNull: false
    },
    CorporateName: {
        type: Sequelize.STRING
    },
    Site: {
        type: Sequelize.STRING
    },
    Salary: {
        type: Sequelize.STRING
    },
    PublishTime: {
        type: Sequelize.STRING
    }
});

module.exports = User;

